﻿#pragma once
#include "PropertyEditEntry.h"
#include <QAbstractButton>

class AbstractButtonPropertyEditEntry : public PropertyEditEntry {
    Q_OBJECT
public:
    explicit AbstractButtonPropertyEditEntry(QWidget *parent = nullptr);
    AbstractButtonPropertyEditEntry(void *object, QWidget *parent = nullptr);
    ~AbstractButtonPropertyEditEntry();
    void setObject(void *object) override;

protected slots:
    void onTick() override;

private:
    void initUi();
    void retranslateUi();

private:
    struct AbstractButtonPropertyEditEntryPrivate;
    QScopedPointer<AbstractButtonPropertyEditEntryPrivate> p;
};
